<template>
	<view>
		<u-popup :show="show" mode="center" @close="close" round="12" :closeable="true">
			<view class="wrap">
				<image class="pic" mode="widthFix" src="../../static/popup_pic_Pay@2x.png"></image>
				<view class="title" style="margin-top: 30rpx;">恭喜您收到</view>
				<view class="title">{{tips}}</view>
				<view class="btn" @click.stop="onClick">立即参与</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		props:{
			tips:{
				type: String,
				default:''
			}
		},
		data() {
			return {
				show:false
			}
		},
		methods:{
			open(){
				this.show=true
			},
			close(){
				this.show=false
			},
			onClick(){
				this.show=false
				this.$emit('onClick')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pic{
		width: 600rpx;
	}
	.title{
		color: #333333;
		font-size: 32rpx;
		font-weight: bold;
		text-align: center;
	}
	.btn{
		margin: 36rpx 72rpx;
		height: 68rpx;
		line-height: 68rpx;
		border-radius: 34rpx;
		color: white;
		font-size: 32rpx;
		text-align: center;
		background: #6ABF6C;
		box-shadow: 0px 1px 2px 0px rgba(8,139,120,0.3);
	}
</style>